package com.example.black.myapplication;

import android.app.Application;
import android.support.v7.app.AppCompatDelegate;

/**
 * <pre>
 *     author : 28476
 *     e-mail : hao.wang@1hai.cn
 *     time   : 2018/09/27/17:58
 *     desc   :
 *     version: 1.0
 * </pre>
 */


public class DemoApplication extends Application {
    private static DemoApplication demoApplication;
   private static final int defaultStyle = R.style.AppTheme_Pink;
   private static int tempNightMode = AppCompatDelegate.MODE_NIGHT_NO;
    private static int style = defaultStyle;
    @Override
    public void onCreate() {
        super.onCreate();
        demoApplication = this;
    }

    public static DemoApplication getDemoApplication() {
        return demoApplication;
    }

    public static void setStyle(int style) {
        DemoApplication.style = style;
    }

    public static int getStyle() {
        return style;
    }

    public static int getTempNightMode() {
        return tempNightMode;
    }

    public static void setTempNightMode(int tempNightMode1) {
        tempNightMode = tempNightMode1;
    }


}
